/ BBS in a Box 15
/ BBS in a box XV-2.iso / Files II / Prog / N-P / NString 1.0 beta.sit / NString 1.0 beta / Sources / Alphabet_Global.cxx ![]() | < prev | next > |
MacBinary | 1994-11-12 | 2.1 KB | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Sat Nov 12 18:09:07 1994, modified Sat Nov 12 18:09:07 1994, creator Think C, type ASCII, 1504 bytes "Alphabet_Global.cxx" , at 0x660 444 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 41 6c 70 68 61 62 | 65 74 5f 47 6c 6f 62 61 |..Alphab|et_Globa|
|00000010| 6c 2e 63 78 78 00 00 00 | 00 00 00 00 00 00 00 00 |l.cxx...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 e0 00 | 00 01 bc aa ea fb 93 aa |........|........|
|00000060| ea fb 93 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f4 41 00 00 |........|.....A..|
|00000080| 0d 23 64 65 66 69 6e 65 | 20 4b 45 45 50 5f 41 4c |.#define| KEEP_AL|
|00000090| 50 48 41 42 45 54 5f 44 | 45 46 49 4e 45 53 0d 0d |PHABET_D|EFINES..|
|000000a0| 23 69 6e 63 6c 75 64 65 | 20 22 41 6c 70 68 61 62 |#include| "Alphab|
|000000b0| 65 74 2e 68 22 0d 0d 2f | 2f 5f 5f 5f 5f 5f 5f 5f |et.h"../|/_______|
|000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000100| 5f 0d 0d 41 6c 70 68 61 | 62 65 74 26 20 41 6c 70 |_..Alpha|bet& Alp|
|00000110| 68 61 62 65 74 3a 3a 63 | 6c 65 61 72 20 28 76 6f |habet::c|lear (vo|
|00000120| 69 64 29 0d 7b 0d 09 69 | 6e 74 20 69 3b 0d 09 0d |id).{..i|nt i;...|
|00000130| 09 66 6f 72 20 28 69 3d | 30 3b 20 69 20 3c 20 42 |.for (i=|0; i < B|
|00000140| 55 46 53 49 5a 45 3b 20 | 69 2b 2b 29 0d 09 09 62 |UFSIZE; |i++)...b|
|00000150| 75 66 66 65 72 5b 69 5d | 20 3d 20 30 3b 09 09 09 |uffer[i]| = 0;...|
|00000160| 09 09 09 09 09 09 09 09 | 2f 2f 20 63 6c 65 61 72 |........|// clear|
|00000170| 20 61 6c 6c 20 62 75 66 | 66 65 72 20 62 69 74 73 | all buf|fer bits|
|00000180| 0d 09 09 0d 09 72 65 74 | 75 72 6e 20 2a 74 68 69 |.....ret|urn *thi|
|00000190| 73 3b 0d 7d 0d 0d 2f 2f | 5f 5f 5f 5f 5f 5f 5f 5f |s;.}..//|________|
|000001a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000001b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000001c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000001d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000001e0| 0d 0d 41 6c 70 68 61 62 | 65 74 26 20 41 6c 70 68 |..Alphab|et& Alph|
|000001f0| 61 62 65 74 3a 3a 6f 70 | 65 72 61 74 6f 72 2b 3d |abet::op|erator+=|
|00000200| 20 28 63 6f 6e 73 74 20 | 41 6c 70 68 61 62 65 74 | (const |Alphabet|
|00000210| 26 20 6f 74 68 65 72 29 | 0d 7b 0d 09 69 6e 74 20 |& other)|.{..int |
|00000220| 69 3b 0d 09 0d 09 66 6f | 72 20 28 69 3d 30 3b 20 |i;....fo|r (i=0; |
|00000230| 69 20 3c 20 42 55 46 53 | 49 5a 45 3b 20 69 2b 2b |i < BUFS|IZE; i++|
|00000240| 29 0d 09 09 62 75 66 66 | 65 72 5b 69 5d 20 7c 3d |)...buff|er[i] |=|
|00000250| 20 6f 74 68 65 72 2e 62 | 75 66 66 65 72 5b 69 5d | other.b|uffer[i]|
|00000260| 3b 09 09 09 09 09 2f 2f | 20 4f 52 20 62 75 66 66 |;.....//| OR buff|
|00000270| 65 72 20 62 69 74 73 0d | 09 0d 09 72 65 74 75 72 |er bits.|...retur|
|00000280| 6e 20 2a 74 68 69 73 3b | 0d 7d 0d 0d 2f 2f 5f 5f |n *this;|.}..//__|
|00000290| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002d0| 5f 5f 5f 5f 5f 5f 0d 0d | 41 6c 70 68 61 62 65 74 |______..|Alphabet|
|000002e0| 26 20 41 6c 70 68 61 62 | 65 74 3a 3a 6f 70 65 72 |& Alphab|et::oper|
|000002f0| 61 74 6f 72 2a 3d 20 28 | 63 6f 6e 73 74 20 41 6c |ator*= (|const Al|
|00000300| 70 68 61 62 65 74 26 20 | 6f 74 68 65 72 29 0d 7b |phabet& |other).{|
|00000310| 0d 09 69 6e 74 20 69 3b | 0d 09 0d 09 66 6f 72 20 |..int i;|....for |
|00000320| 28 69 3d 30 3b 20 69 20 | 3c 20 42 55 46 53 49 5a |(i=0; i |< BUFSIZ|
|00000330| 45 3b 20 69 2b 2b 29 0d | 09 09 62 75 66 66 65 72 |E; i++).|..buffer|
|00000340| 5b 69 5d 20 26 3d 20 6f | 74 68 65 72 2e 62 75 66 |[i] &= o|ther.buf|
|00000350| 66 65 72 5b 69 5d 3b 09 | 09 09 09 09 2f 2f 20 41 |fer[i];.|....// A|
|00000360| 4e 44 20 62 75 66 66 65 | 72 20 62 69 74 73 0d 09 |ND buffe|r bits..|
|00000370| 0d 09 72 65 74 75 72 6e | 20 2a 74 68 69 73 3b 0d |..return| *this;.|
|00000380| 7d 0d 0d 2f 2f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |}..//___|________|
|00000390| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000003a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000003b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000003c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 0d 41 |________|_____..A|
|000003d0| 6c 70 68 61 62 65 74 26 | 20 41 6c 70 68 61 62 65 |lphabet&| Alphabe|
|000003e0| 74 3a 3a 6f 70 65 72 61 | 74 6f 72 2d 3d 20 28 63 |t::opera|tor-= (c|
|000003f0| 6f 6e 73 74 20 41 6c 70 | 68 61 62 65 74 26 20 6f |onst Alp|habet& o|
|00000400| 74 68 65 72 29 0d 7b 0d | 09 69 6e 74 20 69 3b 0d |ther).{.|.int i;.|
|00000410| 09 0d 09 66 6f 72 20 28 | 69 3d 30 3b 20 69 20 3c |...for (|i=0; i <|
|00000420| 20 42 55 46 53 49 5a 45 | 3b 20 69 2b 2b 29 0d 09 | BUFSIZE|; i++)..|
|00000430| 09 62 75 66 66 65 72 5b | 69 5d 20 26 3d 20 7e 28 |.buffer[|i] &= ~(|
|00000440| 6f 74 68 65 72 2e 62 75 | 66 66 65 72 5b 69 5d 29 |other.bu|ffer[i])|
|00000450| 3b 09 09 09 09 09 09 09 | 09 2f 2f 20 22 73 75 62 |;.......|.// "sub|
|00000460| 73 74 72 61 63 74 22 20 | 62 75 66 66 65 72 20 62 |stract" |buffer b|
|00000470| 69 74 73 0d 09 0d 09 72 | 65 74 75 72 6e 20 2a 74 |its....r|eturn *t|
|00000480| 68 69 73 3b 0d 7d 0d 0d | 2f 2f 5f 5f 5f 5f 5f 5f |his;.}..|//______|
|00000490| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000004a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000004b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000004c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000004d0| 5f 5f 0d 0d 41 6c 70 68 | 61 62 65 74 26 20 41 6c |__..Alph|abet& Al|
|000004e0| 70 68 61 62 65 74 3a 3a | 63 6f 6d 70 6c 65 6d 65 |phabet::|compleme|
|000004f0| 6e 74 20 28 76 6f 69 64 | 29 0d 7b 0d 09 69 6e 74 |nt (void|).{..int|
|00000500| 20 69 3b 0d 09 0d 09 66 | 6f 72 20 28 69 3d 30 3b | i;....f|or (i=0;|
|00000510| 20 69 20 3c 20 42 55 46 | 53 49 5a 45 3b 20 69 2b | i < BUF|SIZE; i+|
|00000520| 2b 29 0d 09 09 62 75 66 | 66 65 72 5b 69 5d 20 3d |+)...buf|fer[i] =|
|00000530| 20 7e 28 62 75 66 66 65 | 72 5b 69 5d 29 3b 09 09 | ~(buffe|r[i]);..|
|00000540| 09 09 09 09 09 09 09 09 | 2f 2f 20 69 6e 76 65 72 |........|// inver|
|00000550| 74 20 62 75 66 66 65 72 | 20 62 69 74 73 0d 09 0d |t buffer| bits...|
|00000560| 09 72 65 74 75 72 6e 20 | 2a 74 68 69 73 3b 0d 7d |.return |*this;.}|
|00000570| 0d 0d 2f 2f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |..//____|________|
|00000580| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000590| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000005a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000005b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 0d 0d 69 6e |________|____..in|
|000005c0| 74 20 41 6c 70 68 61 62 | 65 74 3a 3a 6f 70 65 72 |t Alphab|et::oper|
|000005d0| 61 74 6f 72 3d 3d 20 28 | 63 6f 6e 73 74 20 41 6c |ator== (|const Al|
|000005e0| 70 68 61 62 65 74 26 20 | 6f 74 68 65 72 29 20 63 |phabet& |other) c|
|000005f0| 6f 6e 73 74 0d 7b 0d 09 | 69 6e 74 20 69 3b 0d 09 |onst.{..|int i;..|
|00000600| 0d 09 66 6f 72 20 28 69 | 3d 30 3b 20 69 20 3c 20 |..for (i|=0; i < |
|00000610| 42 55 46 53 49 5a 45 3b | 20 69 2b 2b 29 0d 09 09 |BUFSIZE;| i++)...|
|00000620| 69 66 20 28 62 75 66 66 | 65 72 5b 69 5d 20 21 3d |if (buff|er[i] !=|
|00000630| 20 6f 74 68 65 72 2e 62 | 75 66 66 65 72 5b 69 5d | other.b|uffer[i]|
|00000640| 29 0d 09 09 09 72 65 74 | 75 72 6e 20 30 3b 0d 09 |)....ret|urn 0;..|
|00000650| 09 09 0d 09 72 65 74 75 | 72 6e 20 31 3b 0d 7d 0d |....retu|rn 1;.}.|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 62 | 00 00 00 62 00 00 00 5a |.......b|...b...Z|
|00000690| 12 6a 4f ef 00 0c 2d 40 | ff fc 4a 80 66 00 ff 76 |.jO...-@|..J.f..v|
|000006a0| 60 00 02 40 4e ad 0d 3a | 0c 2d 00 6f f4 24 66 5c |`..@N..:|.-.o.$f\|
|000006b0| 13 41 6c 70 68 61 62 65 | 74 5f 47 6c 6f 62 61 6c |.Alphabe|t_Global|
|000006c0| 2e 63 78 78 02 00 00 00 | 50 61 72 74 53 49 54 21 |.cxx....|PartSIT!|
|000006d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 ab 4c 25 2f 00 00 | 00 00 00 00 01 bc 0d 3a |...L%/..|.......:|
|00000700| 0c 2d 00 41 f4 24 66 0e | 60 00 01 d8 70 00 2d 40 |.-.A.$f.|`...p.-@|
|00000710| ff fc 4e ad 0d 3a 0c 2d | 00 4a f4 24 66 00 01 c0 |..N..:.-|.J.$f...|
|00000720| 78 00 7a 00 7c 00 7e 00 | 1d 7c 00 83 ff f8 60 00 |x.z.|.~.|.|....`.|
|00000730| 00 a6 52 84 4a 85 67 00 | 00 94 60 00 01 a2 7a 01 |..R.J.g.|..`...z.|
|00000740| 53 84 66 00 00 88 60 00 | 01 1c 4a 86 66 5a 42 a7 |S.f...`.|..J.fZB.|
|00000750| 2f 2d f4 26 4e ad 0e 42 | 50 4f 2d 40 ff fc 4a 80 |/-.&N..B|PO-@..J.|
|00000760| 67 46 20 40 10 28 00 0a | 72 00 12 00 04 41 00 09 |gF @.(..|r....A..|
|00000770| 6b 36 70 0a b2 40 6e 30 | d2 41 32 3b 10 06 4e fb |k6p..@n0|.A2;..N.|
|00000780| 00 00 00 04 00 07 00 02 | 00 00 00 0a 00 0a 06 47 |........|.......G|
|00000790| 65 6e 65 76 61 6e 00 00 | 00 48 00 0a 47 65 6e 65 |enevan..|.H..Gene|
|000007a0| 76 61 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |va......|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 07 00 02 |........|........|
|000007c0| 00 2c 00 03 01 dd 02 7d | 00 2a 00 04 01 dc 02 7c |.,.....}|.*.....||
|000007d0| aa ea b5 44 00 00 00 1e | 00 00 00 1e 00 00 00 00 |...D....|........|
|000007e0| 00 00 00 00 01 00 00 00 | 01 62 00 00 00 62 00 00 |........|.b...b..|
|000007f0| 00 5a 00 bc 86 5c 12 5e | 00 00 00 1c 00 5a 00 02 |.Z...\.^|.....Z..|
|00000800| 45 54 41 42 00 00 00 1a | 45 46 4e 54 00 00 00 26 |ETAB....|EFNT...&|
|00000810| 4d 50 53 52 00 00 00 32 | 03 ec ff ff 00 00 00 00 |MPSR...2|........|
|00000820| 00 00 00 00 03 eb ff ff | 00 00 00 08 00 00 00 00 |........|........|
|00000830| 03 ed ff ff 00 00 00 16 | 00 bc 82 78 00 00 00 00 |........|...x....|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+